settings object

This method will free all resources allocated for the settings object.

bool close()

Parameters:
None.

Return value:
true on success, false on failure.

Remarks:
If the close method is not called explicitly, the object will automatically free itself when the object goes out of scope or when the engine shuts down.

Example:
// Store a value in the registry and explicitly close afterwards.

void main()
{
settings game_data;
bool success=game_data.setup("Testtime Interactive", "Bonebreaker", false);
if(!success)
{
alert("Error", "Could not access the registry.");
exit();
}
game_data.write_number("music_volume", -5.0);
game_data.close();
}